Glmark2
build
Before build glmark2 in tinkerboard you need to install follow pkg first.
sudo apt-get install -y git g++ build-essential pkg-config libx11-dev libgl1-mesa-dev libjpeg-dev libpng-dev
Get source code and build/install,
git clone https://github.com/glmark2/glmark2.git && cd glmark2 && ./waf configure --with-flavors=x11-glesv2 && ./waf build -j4 && ./waf install
After build and setting done, you should got a "glmark2-es2" executable in your bin folder.
Start benchmark
full screen
su linaro -c "DISPLAY=:0.0 glmark2-es2 --fullscreen"
off screen
su linaro -c "DISPLAY=:0.0 glmark2-es2 --off-screen"
windows mode
su linaro -c "DISPLAY=:0.0 glmark2-es2"
Get better score
config Xserver
In our customize xserver, we can disable waiting vsync by adding a config.
adding
Option "Dri2Vsync" "FALSE"
to
/etc/X11/xorg.conf.d/20-modesetting.conf
config gpu scale gove
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor